package com.think.teaching.mapper;

import com.think.teaching.model.ArticleLesson;

import org.apache.ibatis.annotations.Insert;
import org.mapstruct.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * 文章课程章节 Mapper 接口
 * </p>
 *
 * @author think
 * @since 2020-08-12
 */
@Mapper
public interface ArticleLessonMapper extends BaseMapper<ArticleLesson> {
	
	//新增文章
	@Insert("INSERT INTO article_lesson (id,lesson_name,chapter_id,author,content) VALUES(#{id},#{lessonName},#{chapterId},#{author},#{content})")
	public void InsertArticle(ArticleLesson article);
}
